<ion-view title="用户管理" id="page17">
    <ion-content padding="true" class="has-header">
        <div style="text-align:left;">
            <img src="img/SmtDuWFARYbZti55oYiQ_haishi.png" style="height:60px;width:60px;">
            <span class="titlespan">松江海事船舶查询系统</span>
        </div> 
        <p>新增用户</p>
        <div>
             <table class="detail">
                <thead>
                    <td class="UserCol">用户名</td>
                    <td class="UserCol">用户真实姓名</td>
                    <td class="UserCol">是否是Admin</td>
                    <td class="UserCol">密码</td>
                    <td class="UserCol">操作</td>
                </thead>
                <tr>
                    <td class="UserCol"><input type="text" ng-model="NewUser.UserName"></td>
                    <td class="UserCol"><input type="text" ng-model="NewUser.RealName"></td>
                    <td class="UserCol">
                        <input type="radio" ng-model="NewUser.IsAdmin" value="1">是
                        <input type="radio" ng-model="NewUser.IsAdmin" value="0">否
                    </td>
                    <td class="UserCol"><input type="text" ng-model="NewUser.Password"></td>
                    <td class="UserCol">
                        <button ng-click="AddNew()" id="page1-button4"  class="button button-positive  button-block">新增</button>
                    </td>
                </tr>
             </table>
        </div>
        
        <p></p>
        <p>用户列表</p>
        <table class="detail">
            <thead>
                <td class="UserCol">用户名</td>
                <td class="UserCol">用户真实姓名</td>
                <td class="UserCol">是否是Admin</td>
                <td class="UserCol">密码</td>
                <td class="UserCol">操作</td>
            </thead>
            <tr ng-repeat="User in Users">
                <td class="UserCol"><span ng-bind="User.UserName"></td>
                <td class="UserCol"><span ng-bind="User.RealName"></td>
                <td class="UserCol"><span ng-bind="User.IsAdmin"></td>
                <td class="UserCol"><input type="text" ng-model="User.NewPassword"></td>
                <td class="UserCol"><a ng-click="ModifyPassword(User)" style="margin-right:10px">修改密码</a><a ng-click="Delete(User)">删除用户</a></td>
            </tr>
        </table>
    </ion-content>
    
</ion-view>